<template>
  <!-- S 轮播模块 -->
  <div class="m-swiper">

    <div class="swiper-container" >
      <!-- Swiper -->
      <swiper :options="swiperOption" ref="mySwiper">
        <!-- slides -->
        <swiper-slide class="swipser"></swiper-slide>
        <swiper-slide class="swipser"></swiper-slide>
        <swiper-slide class="swipser"></swiper-slide>
        <!--<swiper-slide class="swipser"><img src="../images/banner.png"/></swiper-slide>-->
        <!--<swiper-slide class="swipser"><img src="../images/banner.png"/></swiper-slide>-->
        <!-- Optional controls -->
        <div class="swiper-pagination" slot="pagination"></div>
        <div class="swiper-button-prev" slot="button-prev"></div>
        <div class="swiper-button-next" slot="button-next"></div>
      </swiper>
    </div>
  </div>
</template>

<script>
  import 'swiper/dist/css/swiper.css'
  import {swiper, swiperSlide} from 'vue-awesome-swiper'

  export default {
    name: "swiperc",
    data() {
      return {
        swiperOption: {
          navigation: {
            nextEl: '.swiper-button-next',
            prevEl: '.swiper-button-prev'
          }, autoplay: {
            delay: 2500,
            disableOnInteraction: false
          }
        },
      }
    }, components: {
      swiper,
      swiperSlide,
    }
  }

</script>

<style scoped>

</style>
